package com.xiaoke.mapper;

import com.xiaoke.entity.SearchHistory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface SearchHistoryMapper {
    int deleteByPrimaryKey(String id);

    int insert(SearchHistory record);

    int insertSelective(SearchHistory record);

    SearchHistory selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(SearchHistory record);

    int updateByPrimaryKey(SearchHistory record);

    void deleteByUser(@Param("userId") String userId,@Param("shopId") String shopId);

    List<String> findTop10ByUserAndShop(@Param("userId") String userId,@Param("shopId") String shopId);
}